/**
 * wikiletter.net Inc.
 * Copyright (c) 2011 All Rights Reserved.
 */
package org.yaya.platform.locker.core.dal.mongodb.dataobject;

import java.util.Date;

import org.springframework.data.annotation.Id;

/**
 *                       
 * @Filename: LockEntity.java
 *
 * @Description: 
 *
 * @Version: 1.0
 *
 * @Author: peigen
 *
 * @Email: peigen123@gmail.com
 *
 *       
 * @History:<br>
 *<li>Author: peigen</li>
 *<li>Date: 2011-7-26</li>
 *<li>Version: 1.0</li>
 *<li>Content: create</li>
 *
 */
public class LockEntity {

    @Id
    private String id;

    private String lockId;

    private Date   gmtCreate;

    private Date   gmtExpire;

    // setter/getter
    /**
     * @return Returns the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     * The id to set.
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return Returns the lockId
     */
    public String getLockId() {
        return lockId;
    }

    /**
     * @param lockId
     * The lockId to set.
     */
    public void setLockId(String lockId) {
        this.lockId = lockId;
    }

    /**
     * @return Returns the gmtCreate
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     * The gmtCreate to set.
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return Returns the gmtExpire
     */
    public Date getGmtExpire() {
        return gmtExpire;
    }

    /**
     * @param gmtExpire
     * The gmtExpire to set.
     */
    public void setGmtExpire(Date gmtExpire) {
        this.gmtExpire = gmtExpire;
    }

    /**
     * @return
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String.format("LockEntity [id=%s, lockId=%s, gmtCreate=%s, gmtExpire=%s]", id,
            lockId, gmtCreate, gmtExpire);
    }

}
